﻿@model QizSmsSession
@{
    ViewBag.Title = "短信随访详情";
    //@Ajax.ActionLink("详情", "QizSmsSessionView", new { ID = item.QizSmsSessionID }, new AjaxOptions() { LoadingElementId = "OnLoadingSpan", UpdateTargetId = "dialogbox", OnComplete = "showDialog('短信随访详情');", HttpMethod = "Get", InsertionMode = InsertionMode.Replace, OnFailure = "OnSiteError" })
}
<p>
    <fieldset>
        <legend>
            <div class="catalog-title">
                @Html.DisplayFor(model => model.User.UserName)
                @Model.Timemark.ToString("yyyy-MM-dd HH:mm")
                @Html.DisplayFor(model => model.QizSmsSubjectMonthIdx.QizSmsSubject.QizSubject.Title)
                短信随访详情</div>
        </legend>
        <table class="width">
            <tr>
                <th>
                    指标
                </th>
                <th>类型</th>
                <th>
                    短信时间
                </th>
                <th>
                    值
                </th>
                <th>单位</th>
                <th>
                    评价
                </th>
            </tr>
            @foreach (var item in Model.QizSmsSessionDetails)
            {
                <tr style="@(item.ValueAutoEvalution == "异常" ? "color:red" : "")">
                    <td>@Html.DisplayFor(model => item.QizSmsSubjDefine.QizSubjectDefine.QizItem.Title)
                    </td>
                    <td>@Html.DisplayFor(model => item.QizSmsSubjDefine.QizSubjectDefine.QizItem.TypeRef.OptionTitle)
                    </td>
                    <td>@item.Timemark.ToString("yyyy-MM-dd HH:mm")
                    </td>
                    <td>@Html.FixStrMiddle(item.UserValue, 16) @Html.DisplayFor(model => item.QizSmsSubjDefine.QizSubjectDefine.QizItem.Unit)
                    </td>
                    <td>@Html.DisplayFor(model => item.QizSmsSubjDefine.QizSubjectDefine.QizItem.Unit)
                    </td>
                    <td>@Html.DisplayFor(model => item.ValueAutoEvalution)
                    </td>
                </tr>
            }
        </table>
    </fieldset>
</p>
